var FakeDomElement = function (e) {
    this.tagName = e;
    this.id = '';
    this.attrs = {};
};
FakeDomElement.toElement = function (e) {
    var t = document.createElement(e.tagName);
    for (var i in (e.id && (t.id = e.id), e.attrs))
        t.setAttribute(i, e.attrs[i]);
    return t;
};
FakeDomElement.fromElement = function (e) {
    var t = new FakeDomElement(e.tagName);
    t.id = e.id;
    var n = e.attributes;
    for (var a = 0; a < n.length; a++)
        t.attrs[n[a].name] = n[a].value;
    return t;
};
FakeDomElement.prototype.cloneNode = function () {
    var e = new FakeDomElement();
    for (var t in (e.id = this.id, this.attrs))
        e.attrs[t] = this.attrs[t];
    return e;
};
FakeDomElement.prototype.removeAttribute = function (e, t) {
    delete this.attrs[e];
};
FakeDomElement.prototype.setAttribute = function (e, t) {
    this.attrs[e] = t;
};
FakeDomElement.prototype.getAttribute = function (e) {
    return this.attrs[e];
};
module.exports = FakeDomElement;
